package net.zhengxinyun.performance.service.login;

import net.zhengxinyun.performance.entity.TokenEntity;

/**
 * @Auther: hyp
 * @Date: 2018/10/30 14:31
 */
public interface TokenService {

    int delete(TokenEntity tokenEntity);

    int update(TokenEntity tokenEntity);

    int insert(TokenEntity tokenEntity);

    TokenEntity queryByKyeId(Long id);

    TokenEntity queryByValue(String value);

    int deleteByUserId(Long userId);

    TokenEntity queryByUserId(long id);

    boolean compareToken (String webToken);

    int updateForPostTime(TokenEntity tokenEntity);


}
